/**
 * @author Marco Dias Lopes
 */

var log = console.log;

var run = function(ch, q, args)
{
	args = args || [];
	log("Testing " + ch + "." + q + ": ", ch[q].apply(window, args));
};

//chapter 4
var chapter4 =
{
	toString:	function()
				{
					return "chapter4";
				},
	
	q1:	function()
		{
			return arguments;
		}
};

//tests
run(chapter4, "q1", [1, 2, 3]);
